import request from "../utils/request";

//获取歌单排行
export const getRankList = () => {
	return request({
		method: "GET",
		url: "/toplist",
	});
};
//获取歌单内歌曲列表
export const getSongList = (id) => {
	return request({
		method: "GET",
		url: `/playlist/detail?id=${id}`,
	});
};
export const getCommentList = (id, limit = 5) => {
	return request({
		method: "GET",
		url: `/comment/playlist?id=${id}&&limit=${limit}`,
	});
};
